home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>3.3.  Bucket Fill</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
- <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
- <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
- <link rel="up" href="gimp-tools-paint.html" title="3.  Brush Tools" />
- <link rel="prev" href="gimp-tool-painting.html" title="3.2.  Painting Tools (Pencil, Paintbrush, Airbrush)" />
- <link rel="next" href="gimp-tool-blend.html" title="3.4.  Blend" />
- </head>
- <body>
- <div class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center">3.3. 
- <span lang="en" xml:lang="en">Bucket Fill</span>
- </th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="gimp-tool-painting.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <th width="60%" align="center">3. 
- <span lang="en" xml:lang="en">Brush Tools</span>
- </th>
- <td width="20%" align="right"> <a accesskey="n" href="gimp-tool-blend.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- </table>
- <hr />
- </div>
- <div class="sect2" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h3 class="title"><a id="gimp-tool-bucket-fill"></a>3.3. 
- <span lang="en" xml:lang="en">Bucket Fill</span>
- </h3>
- </div>
- <div>
- <div class="revhistory">
- <table border="1" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>Revision History</b>
- </th>
- </tr>
- <tr>
- <td align="left">Revision $Revision: 2422 $</td>
- <td align="left">2008-02-20</td>
- <td align="left">j.h</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <a id="id2629113" class="indexterm"></a>
- <a id="id2629126" class="indexterm"></a>
- <div class="figure">
- <a id="id2629135"></a>
- <p class="title">
- <b>Figure 13.44. 
- <span lang="en" xml:lang="en">Toolbox Fill</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/toolbox-fill.png" alt="Toolbox Fill" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- This tool fills a selection with the current foreground color. If you
- Shift+click and use the Bucket tool, it will use the background color
- instead. Depending on how the tool options are set, the Bucket Fill tool
- will either fill the entire selection, or only parts whose colors are
- similar to the point you click on. The tool options also affect the way
- transparency is handled.
- </p>
- <p>
- The amount of fill depends on what Fill Threshold you have specified. The
- fill threshold determines how far the fill will spread (similar to the way
- in which the magic wand works). The fill starts at the point where you
- click and spreads outward until the color or alpha value becomes
- “<span class="quote">too different</span>”.
- </p>
- <p>
- When you fill objects in a transparent layer (such as letters in a text
- layer) with a different color than before, you may find that a border of
- the old color still surrounds the objects. This is due to a low
- fill-threshold in the Bucket Fill options dialog. With a low threshold,
- the bucket tool won't fill semi-transparent pixels, and they will stand
- out against the fill because they have kept their original color.
- </p>
- <p>
- If you want to fill areas that are totally transparent, you have to make
- sure that the “<span class="quote">Lock</span>” option (in the Layers dialog) is
- unchecked. If this option is checked, only the non-transparent parts of
- the layer will be filled.
- </p>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2629216"></a>3.3.1. 
- <span lang="en" xml:lang="en">Activate tool</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- You can find the Bucket Fill tool from the image-menu through:
- <span class="guimenuitem"><span class="accel">T</span>ools</span>/
- <span class="guimenuitem"><span class="accel">P</span>aint
- Tools</span>/<span class="guimenuitem"><span class="accel">B</span>ucket
- Fill.</span>
- </p>
- </li>
- <li>
- <p>
- You can also call it by clicking the tool icon:
- <span class="guiicon">
- <span class="inlinemediaobject"><img src="../images/toolbox/stock-tool-bucket-fill-22.png" /></span> in the Toolbox,
- </span>
- </p>
- </li>
- <li>
- <p>
- or by pressing the
- <span class="keycap"><strong>Shift</strong></span>+<span class="keycap"><strong>B</strong></span> keys.
- </p>
- </li>
- </ul>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2629318"></a>3.3.2. 
- <span lang="en" xml:lang="en">Key modifiers (Defaults)</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="itemizedlist">
- <ul type="disc">
- <li>
- <p>
- <span class="keycap"><strong>Ctrl</strong></span> toggles the use of BG Color Fill or FG
- Color Fill on the fly.
- </p>
- </li>
- <li>
- <p>
- <span class="keycap"><strong>Shift</strong></span> toggles the use of Fill Similar Color or
- Fill Whole Selection on the fly.
- </p>
- </li>
- </ul>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2629366"></a>3.3.3. 
- <span lang="en" xml:lang="en">Options</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2629377"></a>
- <p class="title">
- <b>Figure 13.45. 
- <span lang="en" xml:lang="en">“<span class="quote">Bucket Fill</span>” tool options</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/tool-options-fill.png" alt="Bucket Fill tool options" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- The available tool options for the Fill Tool can be accessed by double
- clicking the Fill Tool icon.
- <span class="guiicon">
- <span class="inlinemediaobject"><img src="../images/toolbox/stock-tool-bucket-fill-22.png" /></span>
- </span>
- </p>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Mode</span>
- </dt>
- <dd>
- <p>
- See <a class="link" href="gimp-tools-paint.html#gimp-tool-brush" title="3.1.  Common Features">Paint Tools</a>
- for help with options that are common to all these tools. Only
- options that are specific to the Bucket Fill tool are
- explained here.
- </p>
- </dd>
- <dt>
- <span class="term">Fill Type</span>
- </dt>
- <dd>
- <p>
- <acronym class="acronym">GIMP</acronym> provides three fill types:
- </p>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">FG Color Fill</span>
- </dt>
- <dd>
- <p>
- sets the fill color to the currently selected foreground
- color.
- </p>
- </dd>
- <dt>
- <span class="term">BG Color Fill</span>
- </dt>
- <dd>
- <p>
- sets the fill color to the currently selected background
- color.
- </p>
- </dd>
- <dt>
- <span class="term">Pattern Fill</span>
- </dt>
- <dd>
- <p>
- sets the fill color to the currently selected pattern. You
- can select the pattern to use in a drop down list.
- </p>
- <p>
- This drop-down list allows the user to select one of many
- fill patterns to use on the next fill operation. The manner
- in which the list is presented is controlled by the four
- buttons at the bottom of the selector.
- </p>
- </dd>
- </dl>
- </div>
- </dd>
- <dt>
- <span class="term">Affected Area</span>
- </dt>
- <dd>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Fill whole selection</span>
- </dt>
- <dd>
- <p>
- This option makes GIMP fill a pre-existent selection or the
- whole image. A quicker approach to do the same thing could
- be to click and drag the foreground, background or pattern
- color, leaving it onto the selection.
- </p>
- </dd>
- <dt>
- <span class="term">Fill similar colors</span>
- </dt>
- <dd>
- <p>
- This is the default setting: the tool fills the area with a
- color near the pixel onto you have clicked. The color
- similarity is defined by a brightness threshold, that you
- can set by a value or by a cursor position.
- </p>
- </dd>
- </dl>
- </div>
- </dd>
- <dt>
- <span class="term">Finding Similar Colors</span>
- </dt>
- <dd>
- <p>Under this section you can find two options:</p>
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Fill Transparent Areas</span>
- </dt>
- <dd>
- <a id="id2629651" class="indexterm"></a>
- <p>
- The option <span class="guilabel">Fill Transparent Areas</span>
- offers the possibility of filling areas with low opacity.
- </p>
- </dd>
- <dt>
- <span class="term">Sample Merged</span>
- </dt>
- <dd>
- <p>
- The option <span class="guilabel">Sample Merged</span>
- toggles the sampling from all layers. If Sample Merged is
- active, fills can be made on a lower layer, while the color
- information used for threshold checking is located further
- up. Simply select the lower level and ensure that a layer
- above is visible for color weighting.
- </p>
- </dd>
- <dt>
- <span class="term">Threshold</span>
- </dt>
- <dd>
- <p>
- The Threshold slider sets the level at which color weights
- are measured for fill boundaries. A higher setting will fill
- more of a multi colored image and conversely, a lower
- setting will fill less area.
- </p>
- </dd>
- <dt>
- <span class="term">Fill by</span>
- </dt>
- <dd>
- <p>
- With this option you can choose which component of the image
- GIMP shall use to calculate the similarity and to determine
- the borders of filling.
- </p>
- <p>
- The components you can choose from are
- <span class="guimenuitem">Composite</span>,
- <span class="guimenuitem">Red</span>,
- <span class="guimenuitem">Green</span>,
- <span class="guimenuitem">Blue</span>,
- <span class="guimenuitem">Hue</span>,
- <span class="guimenuitem">Saturation</span> and
- <span class="guimenuitem">Value</span>.
- </p>
- <p>
- This option is not easy to understand. You have chosen,
- for example, the Red channel. When you click on any pixel,
- the tool searches for contiguous pixels similar for
- <span class="emphasis"><em>the red channel</em></span> to the clicked pixel,
- according to the set threshold. Here is an example:
- </p>
- <p>
- Original image: three strips with gradients of pure
- colors. Red (255;0;0), Green (0;255;0), Blue
- (0;0;255). We are going to use the Bucket-fill tool
- with the magenta color and a Threshold set to 15.
- </p>
- <p>
- Image 1: Fill By = Composite. We successively clicked in the
- three color strips. Every strip is filled according
- to the threshold.
- </p>
- <p>
- Image 2: Fill By = Red. We clicked in the red strip. The
- tool searches for contiguous pixels which have a similar
- value in the red channel, according to the set
- threshold. Only a narrow area corresponds to these
- standards. In the green and the blue strip, the value
- of pixels in the red channel is 0, very much different from
- the red channel value of the clicked pixel: the color
- doesn't spread to them.
- </p>
- <p>
- Image 3: Fill By = Red. We clicked in the green strip.
- There, the value of the clicked pixel in the red channel is
- 0. All pixels in the green and the blue strips have the
- same red channel value (0): they are all painted.
- </p>
- <div class="figure">
- <a id="id2629862"></a>
- <p class="title">
- <b>Figure 13.46. 
- <span lang="en" xml:lang="en">
- Example for “<span class="quote">Fill By</span>”
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/fill-by-0.png" alt="Example for Fill By" />
- <div class="caption">
- <p>Original image</p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/fill-by-1.png" alt="Example for Fill By" />
- <div class="caption">
- <p>Image 1</p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/fill-by-2.png" alt="Example for Fill By" />
- <div class="caption">
- <p>Image 2</p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/fill-by-3.png" alt="Example for Fill By" />
- <div class="caption">
- <p>Image 3</p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </dd>
- </dl>
- </div>
- </dd>
- </dl>
- </div>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2629977"></a>3.3.4. 
- <span lang="en" xml:lang="en">Fill a feathered selection</span>
- </h4>
- </div>
- </div>
- </div>
- <p>
- By clicking repeatedly in a selection with feathered edges, you
- progressively fill the feathered border:
- </p>
- <div class="figure">
- <a id="id2629997"></a>
- <p class="title">
- <b>Figure 13.47. 
- <span lang="en" xml:lang="en">
- Example for “<span class="quote">Fill a feathered Selection</span>”
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/toolbox/fill-feathered-1.png" alt="Example for Fill a feathered Selection" />
- <div class="caption">
- <p>Original image</p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/toolbox/fill-feathered-2.png" alt="Example for Fill a feathered Selection" />
- <div class="caption">
- <p>
- After clicking 3 times more with the Bucket-Fill tool
- </p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- </div>
- </div>
- <div class="navfooter">
- <hr />
- <table width="100%" summary="Navigation footer">
- <tr>
- <td width="40%" align="left"><a accesskey="p" href="gimp-tool-painting.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="gimp-tools-paint.html">
- <img src="../images/up.png" alt="Up" />
- </a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="gimp-tool-blend.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top"><a accesskey="p" href="gimp-tool-painting.html">3.2. 
- <span lang="en" xml:lang="en">Painting Tools (Pencil, Paintbrush, Airbrush)</span>
- </a> </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">
- <img src="../images/home.png" alt="Home" />
- </a>
- </td>
- <td width="40%" align="right" valign="top"> <a accesskey="n" href="gimp-tool-blend.html">3.4. 
- <span lang="en" xml:lang="en">Blend</span>
- </a></td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-